import Vue from 'vue'
import VueI18n from 'vue-i18n'
import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
// import Element from 'element-ui'
import cookie from 'js-cookie'
import en from './en'
import zh from './zh'

Vue.use(VueI18n)
export default new VueI18n({
  locale: cookie.get('locale') || 'zh',
  messages: {
    en: {
      ...enLocale,
      ...en,
      dashboard: {
        mytitle: 'work-calendar'
      }
    },
    zh: {
      ...zhLocale,
      ...zh,
      dashboard: {
        mytitle: '工作日历'
      }
    }
  }
})
